if ((Get-PSSnapin | where-object {$_.name -eq "vCenterLabManagerSnapIn"}) -eq $null) { Remove-PSSnapin vCenterLabManagerSnapIn } 
